package com.happy.ibidding.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

import java.util.List;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Bid {

    @Id
    private String id;

    private String askId;

    private String bidId;

    private String userId;

    private double bidPrice;

    private long bidTime;

    private boolean win;

    private long winTime;

    private String file;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private Ask ask;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private User user;
}
